<?php

namespace app\delivery\controller;
use app\common\controller\PCBase;
use app\common\controller\DBase;
use app\delivery\logic\DeliveryLogic;
use  think\App;
class Delivery extends PCBase
{

    /**
     * @desc   获取全部订单列表
     * @author luckyXiong
     * @date   2025-01-24
     */
    public function orderList(){
        $params     = $this->request->post();
        return     (new DeliveryLogic())->orderList($params);
    }



    /**
     * @desc   导入数据处理
     * @author luckyXiong
     * @date   2025-01-24
     */
    public function importInfo(){
        $file   = $this->request->file('file');
        $tel    = $this->getAdminTel();
        $data['file'] = $file;
        $data['tel']  = $tel;
        (new DeliveryLogic())->importInfo($data);
        return  $this->jsonMessage(200,true,'文件异步上传成功,等待一会可以查看结果!',null);
    }








}